home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / hack / 3_1_3 / sys / amiga / wbprotos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-27  |  4.1 KB  |  111 lines

  1. /*    SCCS Id: @(#)wbprotos.h   3.1    93/01/08
  2. /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1992, 1993.  */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifdef __STDC__
  6. # define P(s) s
  7. #else
  8. # define P(s) ()
  9. #endif
  10.  
  11.  
  12. /* wb.c */
  13. int main P(( int argc , struct WBStartup *argv ));
  14. void CopyRight P(( void ));
  15. void InitWB P(( int argc , struct WBStartup *wbs ));
  16. void ReadConfig P(( void ));
  17. void CloseDownWB P(( void ));
  18. void SetupWB P(( void ));
  19. void MapGadgets P(( int reason , int update ));
  20. void ClearWindow P(( struct Window *win ));
  21. void CalcLocs P(( int update ));
  22. void text_requester P(( struct NewWindow *newwin , struct IntuiText *tlist ));
  23. void getline P(( FILE *fp , long *offarr , int which , char *buf , int size ));
  24. void help_requester P(( char *file ));
  25. void do_closewindow P(( void ));
  26. void do_menu P(( struct Menu *mptr, int mcode ));
  27. void menu_discard P(( void ));
  28. void menu_copyopt P(( void ));
  29. void menu_rename P(( void ));
  30. void run_game P(( GPTR gptr ));
  31. void CleanUpLists P(( void ));
  32. void CloseLibraries P(( void ));
  33. void cleanup P(( int code ));
  34. void SafeCloseWindow P(( struct Window *window ));
  35. GPTR AllocGITEM P(( void ));
  36. void FreeGITEM P(( GPTR gptr ));
  37. void RemoveGITEM P(( GPTR ));
  38. struct DiskObject *AllocDObj P(( char *str ));
  39. void FreeDObj P(( struct DiskObject *doptr ));
  40. void LoadIcons P(( void ));
  41. void menu_scores P(( void ));
  42. void menu_recover P(( void ));
  43. void menu_config P(( void ));
  44. void menu_editdef P(( int newgame ));
  45. void do_gadgetup P(( struct IntuiMessage *imsg ));
  46. void do_buttons P(( struct IntuiMessage *imsg ));
  47. void do_gadgetdown P(( struct IntuiMessage *imsg ));
  48. int ask_request P(( char *str ));
  49. void setopt P(( GPTR ));
  50. void menu_info P(( void ));
  51. int IsEditEntry P(( char *, GPTR ));
  52. void menu_comment P(( void ));
  53. void text_request P(( char *str , char *file ));
  54. void errmsg P(( int flash , char *str, ... ));
  55. void error P(( char *str ));
  56. void SetGadgetUP P(( struct Gadget *gad ));
  57. void SetGadgetDOWN P(( struct Gadget *gad ));
  58. void UpdatePropGad P(( struct Window *win , struct Gadget *gad , long vis ,
  59.     long total , long top ));
  60. void *xmalloc P(( unsigned nbytes ));
  61. int DeleteGame P(( GPTR gptr ));
  62. GPTR FindGame P(( char *name ));
  63. void setoneopt P(( int idx , char *str ));
  64. char *dirname P(( char *str ));
  65. int StrRequest P(( char *prompt , char *buff , char *val ));
  66. int LoadDefaults P(( char *player ));
  67. void SaveDefaults P(( char *player ));
  68. void CopyDefs2Gad P(( void ));
  69. void CopyGad2Defs P(( void ));
  70. void UpdateTypes P(( struct Window *cwin ));
  71. void CheckOnly P(( struct Menu *menuptr , int menu , int itemno ));
  72. int Ask P(( char *quest ));
  73. char *GameName P(( GPTR gptr , char *file ));
  74. GPTR GetWBIcon P(( BPTR lock , char *dir , struct FileInfoBlock *finfo ));
  75. void SetBorder P(( struct Gadget *gd, int val ));
  76. GPTR NeedGame P(( void ));
  77. void ChgGameItems P(( struct Menu *menup , int enable ));
  78. void ChgNewGameItems P(( struct Menu *menup , int enable ));
  79. int EditOptions P(( OPTR optr, GPTR gptr ));
  80. struct Gadget *FindGadget P(( struct Window *window ,
  81.     struct NewWindow *newwindow , int id ));
  82. void ZapOptions P(( OPTR optr ));
  83. void CopyOptions P(( OPTR optr , GPTR gptr ));
  84. void CopyOptionStr P(( OPTR optr , char *str ));
  85. void SetOptions P(( OPTR optr , GPTR gptr ));
  86. void PutOptions P(( OPTR optr ));
  87. char *ToolsEntry P(( GPTR gptr , char *name ));
  88. void ReallocTools P(( GPTR gptr, int ));
  89. void FreeTools P(( GPTR gptr ));
  90. void SetToolLine P(( GPTR gptr , char *name , char *value ));
  91. void WriteDObj P(( GPTR gptr , long lock ));
  92. void UpdateGameIcon P(( GPTR gptr ));
  93. char *Strdup P(( char *str ));
  94. void Game2Defs P(( GPTR gptr ));
  95. int CheckAndCopy P(( char *, char * ));
  96. void ClearDelGames P(( void ));
  97. int FindChecked P(( register struct Menu *menuptr, register int menu ));
  98. void RPText P(( struct RastPort *rp, register char *s ));
  99. #ifdef  INTUI_NEW_LOOK
  100. struct Window *MyOpenWindow P(( struct ExtNewWindow *nw ));
  101. #else
  102. struct Window *MyOpenWindow P(( struct NewWindow *nw ));
  103. #endif
  104. void SetUpMenus( register struct Menu *mp, register struct Screen *scrn );
  105. void UpdateCnfFile( void );
  106. char *basename( char * );
  107. void flushIDCMP( struct MsgPort *);
  108. filecopy( char *, char * );
  109.  
  110. #undef P
  111.